import React from 'react'
import { useSelector } from 'react-redux'
function Index() {
  const userInfo=useSelector(state=>state.user.userInfo)
  return (
    <div>
      <img src={userInfo.avatar} alt="" />
      <h2>{userInfo.nickname}</h2>
      我的页面
    </div>
  )
}

export default Index
